var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
  var loginIP = req.header('x-forwarded-for');// ||
  var loginIP2 =  req.connection.remoteAddress;
  console.log("ip1"+loginIP);
  console.log("ip2"+loginIP2);
  res.render('index', { title: 'Express' });
});

module.exports = router;
